package com.yix.admin.modules.system.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/1/27 17:11
 */
@Entity
@Data
@Table(name = "roles_menus")
@IdClass(RolesMeunusKey.class)
@org.hibernate.annotations.Table(appliesTo = "roles_menus",comment = "角色菜单关联表")
public class RolesMeunus implements Serializable {
    @Id
    @Column(name = "menu_id",columnDefinition = "varchar(32) COMMENT '菜单ID'")
    @ApiModelProperty(value = "菜单ID")
    private String menuId;
    @Id
    @Column(name = "role_id",columnDefinition = "varchar(32) COMMENT '角色ID'")
    @ApiModelProperty(value = "角色ID")
    private String roleId;
}
